<?php /*
	*/ ?>
<?php include("system/config.inc.php");
$donotinclude = 1;
if(!isset($_SESSION['adminuserid']))
{
	header("location:index.php?msg=logfirst");
	die();
}
include("inc/header.php");?>
<body>

<table width="80%" border="0" align="center" cellpadding="0" cellspacing="1" class="middlebackground">
  <tr>
    <td colspan="3" valign="top" align="center"><?php include(INC."top.inc.php");?></td>
  </tr>
  <tr>
    <td width="7%">&nbsp;</td>
	
	
	
    <td width="90%" align="center"><table width="75%" border="0" cellpadding="2" cellspacing="2" class="border">
      
	  <tr>
	    <td colspan="2" class="bg1"><strong>Customer Product Order </strong></td>
	    <td align="center" class="bg1"><a Title="Click here to Go Back" href="#" onClick="history.go(-1);" class="fntstyle"><strong>BACK</strong></a></td>
	  </tr>
	  <tr>
	  <?php
	  if(isset($_REQUEST['prod']) && ($_REQUEST['prod'])!="")
	  {
		$prod=mysql_real_escape_string($_REQUEST['prod']);
	
		/**************************************
				PAGING CODE START
		**************************************/
			//$rowperpage=23;
			$tablename="tblproducts";
			$per_page_keywords= "intprodid=".$prod;
			$per_page_sorts= "";
			$wvar = "";
			include("system/paging.inc.php");

		/**************************************
				PAGING CODE ENDING
		**************************************/

	
		$sql_select = "select * 
		from  ".$tablename."
		where ".$per_page_keywords."
		Limit ".($page_no*$row_per_page).",".$row_per_page;
		$sql = $obj_db->select($sql_select);
		if($sql)
		{				 
				$sql_select1 = "select * from tblproddesc where `intid`=".$prod ; 
				$sql1 = $obj_db->select($sql_select1);
				if($sql1)
				{			
								
	?>	  
        <td colspan="2">Product Name: <?php echo stripslashes($sql1[0]['varprodname']); ?></td>
        <td>&pound;&nbsp;<?php echo stripslashes($sql[0]['decprice']);?></td>
		
      </tr>
      <tr>
        <td valign="top"><?php 		
				 $desctxt=$sql1[0]['txtdesc'];

				 if(strlen($desctxt) > 15 )

				  {
				  	$desctxt=substr($desctxt,0,15);

					$desctxt=$desctxt."...";
				  }			  

				  echo stripslashes(srchwordchangestyl($desctxt)); 
			?></td>
        <td>&nbsp;</td>
        <td align="center"><img src="../images/product/<?php echo $sql[0]['intproddefaultimg'];?>" border="0"/></td>
      </tr>
	<?php }}}?>
      
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
    </td>
    <td width="3%">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3" align="center"><?php include(INC."bottom.php");?></td>
  </tr>
</table>

</body>
</html>
